Matthias Clasen [Thu, 29 Jan 2015 03:36:47 +0000 (22:36 -0500)]
file chooser button: Make dnd work as expected
Update the button contents when accepting a drop.
https://bugzilla.gnome.org/show_bug.cgi?id=743451
Sveinn í Felli [Thu, 29 Jan 2015 15:37:35 +0000 (15:37 +0000)]
Updated Icelandic translation
Lapo Calamandrei [Thu, 29 Jan 2015 10:34:01 +0000 (11:34 +0100)]
Adwaita: add comments
Lapo Calamandrei [Thu, 29 Jan 2015 09:49:59 +0000 (10:49 +0100)]
Adwaita: undershoot simplification and tweaks
Matthias Clasen [Wed, 28 Jan 2015 23:26:42 +0000 (18:26 -0500)]
file chooser: Unset sidebar during search
It is a bit misleading to have one of the places in the sidebar
selected while in search mode, since the search is not relative
to any location. So, unset the sidebar selection when we enter
search mode.
Matthias Clasen [Wed, 28 Jan 2015 23:25:32 +0000 (18:25 -0500)]
places sidebar: Make a function NULL-safe
gtk_places_sidebar_set_location's location argument is documented
as allow-none, but if one actually passes NULL, a warning results.
Fix that.
Matthias Clasen [Wed, 28 Jan 2015 23:21:18 +0000 (18:21 -0500)]
file chooser: Unify search mode leaving
Make all ways to get out of search mode go through the same
code path, so we always populate the list.
Matthias Clasen [Wed, 28 Jan 2015 23:17:51 +0000 (18:17 -0500)]
file chooser: Fix key bindings
Key press handlers must chain up for key bindings to work.
Matthias Clasen [Wed, 28 Jan 2015 23:15:19 +0000 (18:15 -0500)]
file chooser: Load a directory when leaving search
Ensure that some folder contents are shown in
the list when we leave search mode.
https://bugzilla.gnome.org/show_bug.cgi?id=743659
Matthias Clasen [Wed, 28 Jan 2015 22:01:30 +0000 (17:01 -0500)]
file chooser: Don't switch too eagerly to search mode
If the search entry doesn't consume the key event, don't
change to search mode. Otherwise, we interfere e.g. with
Ctrl and Shift keys for selection.
https://bugzilla.gnome.org/show_bug.cgi?id=743660
Garrett Regier [Tue, 27 Jan 2015 17:22:26 +0000 (09:22 -0800)]
Fix VA marshaller for GtkWidget's "event-after" signal
Just a copy and paste typo from the "event" signal.
https://bugzilla.gnome.org/show_bug.cgi?id=743593
Signed-off-by: Garrett Regier <garrettregier@gmail.com>
Bastian Ilsø [Wed, 28 Jan 2015 11:39:01 +0000 (11:39 +0000)]
Get started: port example-0.c to GtkApplication
https://bugzilla.gnome.org/show_bug.cgi?id=743638
Christian Persch [Tue, 27 Jan 2015 12:37:15 +0000 (13:37 +0100)]
GtkAboutDialog: Fix crash on link click
https://bugzilla.gnome.org/show_bug.cgi?id=743592
Matthias Clasen [Wed, 28 Jan 2015 21:06:02 +0000 (16:06 -0500)]
file chooser: Make Escape go out of search mode
This works in most other places where we have search,
and is the expected behavior.
Matthias Clasen [Wed, 28 Jan 2015 21:02:03 +0000 (16:02 -0500)]
file chooser: Simplify search entry callback
Matthias Clasen [Wed, 28 Jan 2015 20:57:12 +0000 (15:57 -0500)]
file chooser: Drop unused callbacks
Matthias Clasen [Wed, 28 Jan 2015 20:37:53 +0000 (15:37 -0500)]
file chooser: Remove the search/browse buttons
Enabling search is now handled in the file chooser dialog,
so we don't need these buttons anymore.
Matthias Clasen [Wed, 28 Jan 2015 20:36:57 +0000 (15:36 -0500)]
file chooser dialog: Add a search button to the header
This is where we put similar search buttons in applications
and in other dialogs, such as the GtkAppChooserDialog.
Matthias Clasen [Wed, 28 Jan 2015 20:00:08 +0000 (15:00 -0500)]
file chooser: Add a search-mode property
This will be used to control search from the dialog.
Matthias Clasen [Wed, 28 Jan 2015 15:35:49 +0000 (10:35 -0500)]
file chooser: Clean up includes
Lapo Calamandrei [Wed, 28 Jan 2015 19:22:05 +0000 (20:22 +0100)]
Adwaita: undershoot tweaks
Lapo Calamandrei [Wed, 28 Jan 2015 19:05:03 +0000 (20:05 +0100)]
Adwaita: undershoot teeth removal
Jakub Steiner [Wed, 28 Jan 2015 17:22:59 +0000 (18:22 +0100)]
Adwaita: shade content-view
https://bugzilla.gnome.org/show_bug.cgi?id=740336
Lapo Calamandrei [Wed, 28 Jan 2015 17:19:20 +0000 (18:19 +0100)]
Adwaita: set the right background color for message dialogs
Carlos Garnacho [Sun, 25 Jan 2015 17:55:01 +0000 (17:55 +0000)]
window: Only claim the sequence if keeping the grab
If the grab belongs elsewhere, the window won't claim the sequence right
away. The sequence may still be claimed afterwards when window dragging
starts, but simple clicks won't be consumed this way.
This makes it possible to close popovers when clicking on the title region,
while still permitting touch/button 1 interaction for every other purpose.
https://bugzilla.gnome.org/show_bug.cgi?id=743257
Carlos Garnacho [Tue, 27 Jan 2015 11:24:18 +0000 (11:24 +0000)]
win32: Don't check the position of a NULL device
This function is given a barely setup GdkEvent, so the GdkDevice field
is still unset, causing warnings and misbehaviors when the position
is queried for it.
Given that the wintab GTK+ code seems to rely somewhat hard on the wintab
device managing the pointer cursor, query the pointer position from the
pointer itself.
https://bugzilla.gnome.org/show_bug.cgi?id=743330
Carlos Garnacho [Mon, 26 Jan 2015 14:26:34 +0000 (14:26 +0000)]
win32: Ensure we can create a window for wintab
The window used NULL as a parent window, which defaults internally to
using the root window of the default screen. But at the time wintab is
initialized, there is no default display/screen yet.
Fix this by retrieving this information from the given GdkDeviceManager,
so we don't have to wait for the display to be in place before
initialization.
https://bugzilla.gnome.org/show_bug.cgi?id=743330
Rui Matos [Tue, 27 Jan 2015 17:50:33 +0000 (18:50 +0100)]
gdkscreen-wayland: Don't leak wl_output objects
https://bugzilla.gnome.org/show_bug.cgi?id=743633
Lapo Calamandrei [Wed, 28 Jan 2015 16:11:34 +0000 (17:11 +0100)]
Adwaita: another approach at the undershoot styling
Matthias Clasen [Wed, 28 Jan 2015 15:08:13 +0000 (10:08 -0500)]
Fix a typo
commit
aa1b7fab9c6a2b39 introduced a misuse of G_UNLIKELY in
several places. Fix all those.
Lars Uebernickel [Wed, 28 Jan 2015 14:13:42 +0000 (14:13 +0000)]
Also bundle icons in status/ as resources
https://bugzilla.gnome.org/show_bug.cgi?id=743647
Bastian Ilsø [Tue, 27 Jan 2015 11:43:40 +0000 (11:43 +0000)]
Introduction explaining widget toolkit
Niels Nesse [Sun, 18 Jan 2015 07:21:35 +0000 (23:21 -0800)]
GDK GL context's should associate with "window->impl_window" not "window"
In some layouts this inconsistency results in crashes in
gdk_gl_texture_from_surface() since it uses gdk_gl_context_get_window() but
the returned window is not the same as the one that is being painted so
"window->current_paint.surface" is NULL. I saw this problem when packing a
GdkGLArea into a GtkPaned.
https://bugzilla.gnome.org/show_bug.cgi?id=743146
Niels Nesse [Thu, 15 Jan 2015 01:30:28 +0000 (17:30 -0800)]
Fix core context creation in GdkGLContext
- Specifically request GL version when creating context. Just specifying core
profile bit results in the requested version defaulting to 1.0 which causes
the core profile bit to be ignored and an arbitrary compatability context to be
returned.
- Fix GL painting by removing GL calls that have been depricated by the 3.2 core
profile.
- Additionally remove glInvalidateFramebuffer() call, it is not supported by 3.2
core.
https://bugzilla.gnome.org/show_bug.cgi?id=742953
Bastian Ilsø [Tue, 27 Jan 2015 19:25:40 +0000 (19:25 +0000)]
Paragraph explaining casting conventions via macro
Alexander Larsson [Tue, 27 Jan 2015 17:14:26 +0000 (17:14 +0000)]
gtktreeview: Fix horizontal grid lines
The clipping was wrong so it was not drawing grid lines
outside the visible area, which broke due to the pixel cache.
Jonas Danielsson [Wed, 20 Nov 2013 16:25:59 +0000 (17:25 +0100)]
clipboard: Add get_default() helper
Add helper for getting the main clipboard. This makes
the API usable for bindings (as GdkAtoms aren't usable through
gobject-introspection), and easier to use in C.
https://bugzilla.gnome.org/show_bug.cgi?id=712752
Sveinn í Felli [Tue, 27 Jan 2015 14:32:27 +0000 (14:32 +0000)]
Updated Icelandic translation
Benjamin Otte [Tue, 27 Jan 2015 04:03:52 +0000 (05:03 +0100)]
css: Remove _gtk_css_style_property_changes_affect_size()
... and _gtk_css_style_property_changes_affect_font().
Replace it with _gtk_css_style_property_get_mask_affecting().
Benjamin Otte [Tue, 27 Jan 2015 03:48:35 +0000 (04:48 +0100)]
image: Use _gtk_css_style_property_get_mask_affecting()
... to avoid recomputing the cached surface all the time.
Benjamin Otte [Tue, 27 Jan 2015 03:47:55 +0000 (04:47 +0100)]
css: Add _gtk_css_style_property_get_mask_affecting()
Computes a bitmask for all properties that affect the given flags.
Benjamin Otte [Tue, 27 Jan 2015 03:36:00 +0000 (04:36 +0100)]
css: Remove GtkCssStyleProperty::affects-size
... and GtkCssStyleProperty::affects-font properties. Code now uses
GtkCssStyleProperty::affects instead.
Benjamin Otte [Tue, 27 Jan 2015 03:32:09 +0000 (04:32 +0100)]
css: Add GtkCssStyleProperty::affects property
Benjamin Otte [Mon, 26 Jan 2015 23:25:05 +0000 (00:25 +0100)]
css: Add a -gtk-icon-theme CSS property
The property is useless to set (it only allows 'initial', 'inherit' and
'unset' as values), but it is used to track changes to the icon theme.
And as such, it can ensure that widgets can track when they need to
reload icons.
https://bugzilla.gnome.org/show_bug.cgi?id=743341
Mike Gorse [Mon, 26 Jan 2015 20:59:50 +0000 (14:59 -0600)]
A11y: fix typo when initializing a container cell accessible
Gtk_container_cell_widget_set should chain up to its parent's set
function, not its parent's unset function. This was resulting in
accessibles being erroneously marked defunct after being created.
Yosef Or Boczko [Mon, 26 Jan 2015 20:13:52 +0000 (22:13 +0200)]
Updated Properties Hebrew translation
Yosef Or Boczko [Mon, 26 Jan 2015 20:12:48 +0000 (22:12 +0200)]
Updated Hebrew translation
Matthias Clasen [Sun, 25 Jan 2015 00:31:11 +0000 (19:31 -0500)]
x11: Handle obsolete selection requests without crashing
The ICCCM says:
If the specified property is None, the requestor is an obsolete client.
Owners are encouraged to support these clients by using the specified
target atom as the property name to be used for the reply.
Lets do that, instead of crashing.
https://bugzilla.gnome.org/show_bug.cgi?id=740613
The previous fix for this issue in
732af31424b8f382d was incomplete.
Matthias Clasen [Sun, 25 Jan 2015 00:25:50 +0000 (19:25 -0500)]
Trivial doc fixes
Remove two erroneous quotation marks.
Christoph Reiter [Tue, 20 Jan 2015 16:54:03 +0000 (17:54 +0100)]
GtkFileChooserWidget: Fix a crash for when the widget was unrefed right after setting a current folder.
Keep a reference to the widget while the async operation is ongoing.
https://bugzilla.gnome.org/show_bug.cgi?id=725164
Christoph Reiter [Tue, 20 Jan 2015 16:48:54 +0000 (17:48 +0100)]
GtkFileChooserWidget: remove unused fields and cleanup code.
These fields are never set, so we don't need the code to clean them up.
https://bugzilla.gnome.org/show_bug.cgi?id=725164
Matthias Clasen [Sat, 24 Jan 2015 22:25:43 +0000 (17:25 -0500)]
wayland: Don't claim to support selection notification
We don't support selection notification, so don't claim
we do, only to fail later.
https://bugzilla.gnome.org/show_bug.cgi?id=743229
Matthias Clasen [Sat, 24 Jan 2015 21:45:04 +0000 (16:45 -0500)]
Initialize variables
No need to risk valgrind complaints about initialized
values.
https://bugzilla.gnome.org/show_bug.cgi?id=743422
Debarshi Ray [Wed, 21 Jan 2015 10:28:19 +0000 (11:28 +0100)]
GtkTreeModel: Documentation fix
https://bugzilla.gnome.org/show_bug.cgi?id=743286
Christoph Reiter [Mon, 19 Jan 2015 17:06:03 +0000 (18:06 +0100)]
Fix transfer annotation for tree_model parameter of gtk_tree_get_row_drag_data() and add nullable, optional
The GtkSelectionData does not own the model set with
gtk_tree_set_row_drag_data so change the out param to "transfer none".
This fixes a crash after multiple DnD actions due to the bindings
stealing a reference each time this function is called.
This also adds nullable and optional annotations for tree_model and path while at it.
https://bugzilla.gnome.org/show_bug.cgi?id=743193
Timm Bäder [Fri, 23 Jan 2015 10:21:02 +0000 (11:21 +0100)]
gtkdnd: Set the dnd window's screen before its visual
This makes dnd icons work for widgets on a !default screen.
https://bugzilla.gnome.org/show_bug.cgi?id=743393
Matthias Clasen [Sat, 24 Jan 2015 18:32:31 +0000 (13:32 -0500)]
file chooser: search improvements
Make it so that typing switches to search unless we have a better
use for the key events, and stop search if the entry is emptied.
Matthias Clasen [Sat, 24 Jan 2015 13:04:36 +0000 (08:04 -0500)]
file chooser: Turn off typeahead search
It is the third kind of navigation entry in the file chooser after
the location entry and search, and it interacts badly with both
of the others.
Matthias Clasen [Sat, 27 Dec 2014 23:53:21 +0000 (18:53 -0500)]
gtk-demo: Show search entry signals
Matthias Clasen [Sat, 27 Dec 2014 23:29:07 +0000 (18:29 -0500)]
Use the new API in GtkSearchBar if we can
Sadly, GtkSearchBar allows connecting plain entries, so we have
to keep the old code around.
Matthias Clasen [Tue, 25 Nov 2014 03:44:44 +0000 (22:44 -0500)]
inspector: Use some of the new GtkSearchEntry API
Avoid repetitive, manual event handling in various places
in GtkInspector.
Matthias Clasen [Tue, 25 Nov 2014 03:40:45 +0000 (22:40 -0500)]
GtkSearchEntry: Add more API
Add ::next-match, ::previous-match and ::stop-search keybinding
signals that are bound to Ctrl-g, Ctrl-Shift-g and Escape. Also
add a gtk_search_entry_handle_event() function to handle key events.
Sveinn í Felli [Fri, 23 Jan 2015 13:37:21 +0000 (13:37 +0000)]
Updated Icelandic translation
Timm Bäder [Thu, 22 Jan 2015 12:40:12 +0000 (13:40 +0100)]
inspector: Make gl extension rows unactivatable
Piotr Drąg [Thu, 22 Jan 2015 19:20:43 +0000 (20:20 +0100)]
Updated POTFILES.skip
Benjamin Otte [Thu, 22 Jan 2015 14:47:36 +0000 (15:47 +0100)]
roundedbox: Treat path segments differently
If a side of the box is 0px wide, make the corners owned by the adjacent
sides. This avoids spilling over of unwanted colors from the 0-width
side into the corner.
New test for this case is included.
Benjamin Otte [Thu, 22 Jan 2015 13:36:33 +0000 (14:36 +0100)]
widget: Compute clip of children properly
For widgets with a window, we need to adjust the allocation of their
children.
Benjamin Otte [Thu, 22 Jan 2015 13:33:26 +0000 (14:33 +0100)]
widget: Correctly handle which widgets to include in the clip
Previously, we would not include any child widget on the first
allocation, which happens right after realize(), but before map(). No
widget is drawable at that point.
Benjamin Otte [Thu, 22 Jan 2015 13:33:03 +0000 (14:33 +0100)]
widget: Add debug spew for setting the clip
Benjamin Otte [Thu, 22 Jan 2015 13:32:38 +0000 (14:32 +0100)]
headerbar: Implement clipping
Benjamin Otte [Wed, 21 Jan 2015 15:22:30 +0000 (16:22 +0100)]
border: Don't special case according to border styles
This is now done (as it should) in the compute code.
Sebastian Keller [Wed, 21 Jan 2015 14:29:54 +0000 (15:29 +0100)]
css: Move "border-style: none" special case to CssValueNumber
This fixes the background being shifted by the border-width even though
the border-style was none.
Benjamin Otte [Wed, 21 Jan 2015 01:16:44 +0000 (02:16 +0100)]
stylecontext: Don't do unnecessary workarounds
when calling get_padding/border/margin, there is no need to go through
the fallback API.
This is a huge speedup for certain benchmarks.
Sebastian Keller [Wed, 21 Jan 2015 00:14:55 +0000 (01:14 +0100)]
render: fix arrow orientation
The rotation code in the draw_arrow function was assuming that the arrow
would be drawn pointing upwards but it was pointing to the right
resulting in the rotated arrows pointing in the wrong direction.
The recent refactoring caused a pi/2 rotation to be lost. Rather than
adding that back somehwere (to lose it again in the future), we just
draw the arrow pointing upwards as it is expected to do with a 0 angle.
Matthias Clasen [Tue, 20 Jan 2015 13:18:03 +0000 (08:18 -0500)]
3.15.4
Matthias Clasen [Tue, 20 Jan 2015 11:46:58 +0000 (06:46 -0500)]
More updates
Benjamin Otte [Tue, 20 Jan 2015 05:25:01 +0000 (06:25 +0100)]
image: Compute clip properly
Use the helper function we have for this, don't do it manually. This has
the side effect of also supporting icon transforms.
Benjamin Otte [Tue, 20 Jan 2015 04:54:45 +0000 (05:54 +0100)]
render: Implement -gtk-icon-transform for icon surfaces
Yes, I like playing around. To enjoy, add this CSS to your application
of choice (preferrably glade or something with lots of images):
GtkImage { animation: spin 2s linear infinite; }
You can thank me later.
Benjamin Otte [Tue, 20 Jan 2015 04:21:15 +0000 (05:21 +0100)]
render: Split icon surface rendering out
Just like normal icons, icon surfaces belong into gtkrendericon.c.
Benjamin Otte [Tue, 20 Jan 2015 00:48:46 +0000 (01:48 +0100)]
render: Split icon rendering into its own file
Benjamin Otte [Mon, 19 Jan 2015 16:41:29 +0000 (17:41 +0100)]
render: Remove spinner special-cases
The spinner is a regular builtin image now. There is no need to go
through the shadows code manually anymore as regular items do get
shadows automatically.
This also allows simplifying the actual spinner drawing code so that it
actually works.
Benjamin Otte [Mon, 19 Jan 2015 16:30:43 +0000 (17:30 +0100)]
render: Render builtin images as regular CSS images
This not only reduces code, but also allows for builtin images to have
shadows or be transformed using -gtk-icon-transform.
Benjamin Otte [Mon, 19 Jan 2015 16:14:55 +0000 (17:14 +0100)]
render: Don't require passing CSS properties to builtin images
Instead, make the buiultin image get those properties itself in the
compute vfunc.
Benjamin Otte [Mon, 19 Jan 2015 16:09:42 +0000 (17:09 +0100)]
css: Move icon properties to the end
The order in which properties are defined depends on the order in which
they are computed. And that means that properties can only depend on
other properties that are defined before them.
The next patches will need this reordering.
Benjamin Otte [Mon, 19 Jan 2015 04:44:47 +0000 (05:44 +0100)]
render: Only render 4 different arrows
Instead of supporting every angle, just support top, right, bottom and
left and round the angle to one of those directions.
Adwaita overrides arrows anyway and doesn't even look at the angle, so
this should not be a problem.
Benjamin Otte [Mon, 19 Jan 2015 03:40:24 +0000 (04:40 +0100)]
render: Don't pass junction sides to builtin image
Instead, split the grip into 8 different builtin images (one for each
side and corner).
Benjamin Otte [Mon, 19 Jan 2015 03:27:31 +0000 (04:27 +0100)]
render: Extend builtin images to account for states
We add to the enum to account for the images generated for different
states.
Benjamin Otte [Sun, 18 Jan 2015 19:24:27 +0000 (20:24 +0100)]
render: Move code for rendering builtin images
Also, make it have a generic entry point with
gtk_css_image_builtin_draw().
The only feature lost so is the drawing of shadows for spinners, but
that will come back later.
Benjamin Otte [Sat, 17 Jan 2015 23:17:57 +0000 (00:17 +0100)]
inspector: Remove unused hash table
Benjamin Otte [Sat, 17 Jan 2015 23:14:08 +0000 (00:14 +0100)]
inspector: Remove unused treemodel properties
As a side effect, we can use _gtk_css_section_to_string() to format the
section and save a lot of code.
Benjamin Otte [Sat, 17 Jan 2015 17:55:34 +0000 (18:55 +0100)]
inspector: Use GtkCssStyle and gtk_css_value_to_string()
Benjamin Otte [Sat, 17 Jan 2015 17:15:19 +0000 (18:15 +0100)]
render: Move border rendering into its own file
gtkrenderborder.c now contains the implementation for
gtk_css_style_render_border
gtk_css_style_render_outline
Benjamin Otte [Sat, 17 Jan 2015 17:09:52 +0000 (18:09 +0100)]
render: Remove unused header
Benjamin Otte [Sat, 17 Jan 2015 17:00:03 +0000 (18:00 +0100)]
render: Rename gtkborderimage.[ch]
I want the gtkrender prefix for all filenames about rendering.
Benjamin Otte [Sat, 17 Jan 2015 16:07:01 +0000 (17:07 +0100)]
render: Use a GtkCssStyle instead of GtkStyleContext for focus
Benjamin Otte [Sat, 17 Jan 2015 15:55:45 +0000 (16:55 +0100)]
render: Rename gtkthemingbackground.[ch]
I want the gtkrender prefix for all filenames about rendering.
Benjamin Otte [Sat, 17 Jan 2015 04:54:36 +0000 (05:54 +0100)]
render: Take a GtkCssStyle for rendering frames
... and move the whole function into gtkthemingbackground.c
Benjamin Otte [Sat, 17 Jan 2015 04:27:23 +0000 (05:27 +0100)]
borderimage: Use a GtkCssStyle instead of GtkStyleContext
Benjamin Otte [Sat, 17 Jan 2015 04:23:00 +0000 (05:23 +0100)]
themingbackground: Use a GtkCssStyle instead of GtkStyleContext
Benjamin Otte [Sat, 17 Jan 2015 04:16:01 +0000 (05:16 +0100)]
roundedbox: Take a GtkCssStyle instead of a GtkStyleContext
This is in preparation for iusing GtkCssStyle instead of GtkStyleContext
in render functions.